import request from "@/utils/back-request";

//首页搜索下拉框
export function matchMajorAndPositionList(data) {
  return request({
    url: "/api-career/zt/login/subject/search/list",
    method: "post",
    data,
  });
}
//获取热门院校
export function getPositionSalaryConfig(data) {
  return request({
    url: "/api-career/positionSalary/config",
    method: "post",
    data,
  });
}
//获取高校详情
export function getCollegeDetails(data) {
  return request({
    
    url: "/api-career/college/details",
    method: "post",
    data,
  });
}
//获取高校专业列表
export function getCollegeTags(data) {
  return request({
    url: "/api-career/college/tags",
    method: "post",
    data,
  });
}
//获取校区列表
export function getCollegeCampusList(data) {
  return request({
    url: "/api-career/college/campusList",
    method: "post",
    data,
  });
}
//获取高校专业列表-树结构
export function getCollegeTagsTree(data) {
  return request({
    url: "/api-career/college/tags/tree",
    method: "post",
    data,
  });
}
//获取校园专业列表
export function getCollegeList(data) {
  return request({
    url: "/api-career/college/get/college/list",
    method: "post",
    data,
  });
}
// 热门专业
export function getHotMajor(data) {
  return request({
    url: "/api-career/positionSalary/arrayConfig",
    method: "post",
    data,
  });
}
// 获取一级专业分类
export function getCampusTagList(data) {
  return request({
    url: "/api-career/campus/tagList",
    method: "post",
    data,
  });
}
// 根据一级查二级
export function getCampusTagTree(data) {
  return request({
    url: "/api-career/campus/tagTree",
    method: "post",
    data,
  });
}
//  搜索专业列表
export function getSearchMajorList(data) {
  return request({
    url: "/api-career/campus/tagSearch",
    method: "post",
    data,
  });
}

// 专业信息
export function getMajorInfo(data) {
  return request({
    url: "/api-career/position/rel/tag/info",
    method: "post",
    data,
  });
}
// 专业信息
export function searchJobByProfession(data) {
  return request({
    url: "/api-career/position/subject/match/by/profession",
    method: "post",
    data,
  });
}
// 职业薪酬
export function getPositionSalary(data) {
  return request({
    url: "/api-career/position/rel/tag/salary",
    method: "post",
    data,
  });
}
// 热点城市
export function getHotCitys(data) {
  return request({
    url: "/api-career/position/rel/hotCitys",
    method: "post",
    data,
  });
}
// 热点城市
export function getSchoolList(data) {
  return request({
    url: "/api-career/college/get/college/to/pc/list",
    method: "post",
    data,
  });
}
// 专业门类信息
export function getMajorTagInfo(data) {
  return request({
    url: "/api-career/position/rel/tag/info",
    method: "post",
    data,
  });
}
// 新增/取消收藏
export function campusCollect(data) {
  return request({
    url: "/api-career/campus/collect",
    method: "post",
    data,
  });
}
// 收藏专业列表
export function campusCollectTags(data) {
  return request({
    url: "/api-career/campus/collect/tags",
    method: "post",
    data,
  });
}
// 查询是否收藏
export function campusIsCollect(data) {
  return request({
    url: "/api-career/campus/is/collect",
    method: "post",
    data,
  });
}
// 通过专业查院校
export function getNewSchoolList(data) {
  return request({
    url: "/api-career/college/tags/college",
    method: "post",
    data,
  });
}
